Web Development Interview: Javascript Event Handling